﻿using ConfExpert.Forms.Base;
using DevTeam;
using System;

namespace ConfExpert.Forms.Depo
{
    public partial class UpdDesign : XForm
    {
        public UpdDesign()
        {
            InitializeComponent();
        }

        private void UpdDesign_Load(object sender, EventArgs e)
        {
            
            gv.Init("GetDesign");
            gv.AddSummary("Qty");
            gv.BestFitColumns();

            btnKaydet.ItemClick += btnKaydet_ItemClick;
        }

        void btnKaydet_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            ExecuteNonQuery("UpdDesign", gv.SerializeChanges());
        }
    }
}